PageController<T> Class

Members  Example 

Controller for page types.

Syntax

'Declaration
 
Public MustInherit Class PageController(Of T As CmsPage) 
   Inherits System.Web.Mvc.Controller
   Implements IPageController 
public abstract class PageController<T> : System.Web.Mvc.Controller, IPageController  
where T: CmsPage

Type Parameters

T

Example

namespace DemoSite.Controllers {
    using KalikoCMS.Mvc.Framework;
    using Models.Pages;
    using System.Web.Mvc;

    public class ArticlePageController : PageController<ArticlePage> {
        public override ActionResult Index(ArticlePage currentPage) {
            return View(currentPage);
        }
    }
}

Inheritance Hierarchy

System.Object
   System.Web.Mvc.ControllerBase
      System.Web.Mvc.Controller
         KalikoCMS.Mvc.Framework.PageController<T>

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys